﻿using System;

namespace Oop
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //类 抽象的，相当于数据模板
            Student xiaoming = new Student();
            //小明 具体的对象

            xiaoming.Name = "小明";
            xiaoming.Gender = "男";
            xiaoming.Class = "数技2103";
            xiaoming.Department = "数字传媒系";
            xiaoming.No = "2021001001";

            Console.WriteLine("姓名\t性别\t班级\t系别\t学号");

            //Console.WriteLine(xiaoming.Name + "\t" + xiaoming.Gender + "\t" + xiaoming.Class + "\t" + xiaoming.Department + "\t" + xiaoming.No);
            xiaoming.ShowInfo();

            //类 抽象的，相当于数据模板
            Student lisi = new Student();
            //小明 具体的对象

            lisi.Name = "李四";
            lisi.Gender = "男";
            lisi.Class = "数技2103";
            lisi.Department = "数字传媒系";
            lisi.No = "2021001002";

            lisi.ShowInfo();
        }
    }
}
